/*
	TLC 5940 Driver for the ATmega328p.
	Pin assignments:

	TLC	ATmega328p
	------------------
	LE(ED1)	PC2
	OE(ED2)	PC3
	SIN	PB3
	SCLK	PB5

	This driver utilizes the following hardware capabilities of the
	ATmega328p:
		SPI
*/

#ifndef F_CPU
#define F_CPU 20000000
#endif

#ifndef _TLC5916_H_
#define _TLC5916_H_

#include <inttypes.h>

#include <avr/io.h>
#include <util/delay.h>

#include "../comm/communication.h"

#define ED1	PC2
#define ED2	PC3
#define SIN	PB3
#define SCLK	PB5

void led_driver_init(void);
void display_loop(uint8_t *data, int num_frames);

#endif
